package com.info.zhiduoduo.repository.entity.crowdsource;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * Admin导入自然人文件记录
 * </p>
 */
@Data
@Accessors(chain = true)
@TableName("zdd_crowdsource_import_record")
public class CrowdsourceImportRecord extends Model<CrowdsourceImportRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("企业ID")
    private Integer compid;

    @ApiModelProperty("企业名称")
    @TableField(exist = false)
    private String compname;

    @ApiModelProperty("导入文件路径")
    @TableField("file_path")
    private String filePath;

    @ApiModelProperty("导入自然人数量")
    @TableField("import_num")
    private Integer importNum;

    @ApiModelProperty("导入自然人ID集合")
    @TableField("import_crowdsource_ids")
    private String importCrowdsourceIds;

    @ApiModelProperty("创建人")
    private Integer createBy;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
